package com.auction.service;

import com.auction.dto.SellerApplicationDTO;
import com.auction.dto.SellerApplicationPageQueryDTO;
import com.auction.dto.SellerInfoDTO;
import com.auction.pojo.PageResult;
import com.auction.pojo.SellerApplication;
import com.auction.pojo.SellerInfo;
import com.auction.vo.SellerDashboardVO;
import com.github.pagehelper.PageInfo;

import java.util.Map;

public interface SellerService {
    /**
     * 提交卖家申请
     * 
     * @param sellerApplicationDTO
     */
    void apply(SellerApplicationDTO sellerApplicationDTO);

    /**
     * 根据用户ID查询申请状态
     * 
     * @param userId
     * @return
     */
    SellerApplication getByUserId(Long userId);

    /**
     * 审核卖家申请
     * 
     * @param id
     * @param status
     */
    void approve(Long id, Integer status);

    /**
     * 根据用户ID查询卖家信息
     * 
     * @param userId
     * @return
     */
    SellerInfo getSellerInfoByUserId(Long userId);

    /**
     * 分页查询卖家申请列表
     * 
     * @param pageQueryDTO
     * @return
     */
    PageResult pageQuerySellerApplications(SellerApplicationPageQueryDTO pageQueryDTO);


    /**
     * 分页查询卖家申请列表
     * @param pageQueryDTO
     * @return
     */
    PageResult page(SellerApplicationPageQueryDTO pageQueryDTO);
}